package com.strive.common.redis.properties;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

/**
 * @description:
 * @author: bingcun.chen
 * @Date: 2022/2/21 15:44
 * @Version 1.0
 */
@Getter
@Setter
@ConfigurationProperties(prefix = "strive.cache.manager")
public class CacheManagerProperties {
    private List<CacheConfig> configs;

    @Setter
    @Getter
    public static class CacheConfig{
        /**
         * 自定义Cache key
         */
        private String key;
        /**
         * 过期时间，sec
         */
        private long second = 60;
    }
}
